package com.whfc.iot.mach.entity;

import com.whfc.iot.mach.constant.MsgConst;
import lombok.Data;

/**
 * @Description: 硬件报警-请求
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-01-06 11:04
 */
@Data
public class MachMsg0x88 extends MachMsg {

    /**
     * 确认结果:1-成功 2-失败
     */
    private int result;

    public MachMsg0x88() {
        this.setCmd(MsgConst.DOWNSTREAM_CMD_0x88);
    }

    public MachMsg0x88(int result) {
        this.setCmd(MsgConst.DOWNSTREAM_CMD_0x88);
        this.result = result;
    }

    @Override
    public int getDataLength() {
        return 1;
    }
}
